package sort;

import java.util.Scanner;
public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        //在此输入您的代码...
        String str=scan.nextLine();
        int end=str.length()-1;
       String reverse= Revserse(str,end);
        System.out.println(reverse);
        scan.close();
    }
    static String Revserse(String str,int end){
        if(end==0){
            return ""+str.charAt(0);
        }
        return str.charAt(end)+Revserse(str,end-1);
    }
}